<!--COLUMN 1-->
<div class="FourColGrid_c1">
<?php 
        if($pharmacy['Pharmacy']['Avatar'])
        {
            echo '<img src="'. Router::url('/').'app/webroot/img/avatar/'.$pharmacy['Pharmacy']['Avatar'].'" width="100" height="100" alt="Locum">';
        }else
        {
            echo '<img src="'.Router::url('/').'app/webroot/img/avatar.jpg" width="100" height="100" alt="Locum">';
        }
    ?>  
</div>
<!--COLUMN 1-->

<!--COLUMN 2-->
<div class="FourColGrid_c2">
<h1 class="TitleOne"><?php echo $pharmacy['Pharmacy']['Username']?></h1>
<p><b>Member since</b> <?php echo date('y-m-d',strtotime($pharmacy['Pharmacy']['MatchMemberSince']))?><br>
<b>Last logged in</b> <?php echo date('y-m-d',strtotime($LastLoggedIn))?></p>
<p>&nbsp;</p>

<h4 class="TitleFive">My Stores <?php echo $html->link(__('Add/Edit Store', true), array('controller'=>'pharmacies','action' => 'index'));?></h4>
<ul class="listOne">
<?php if(!empty($a_Stores)){
      foreach($a_Stores as $a_Store)
      {
        echo '<li>'.$html->link(__($a_Store['Store']['Username'], true), array('controller'=>'pharmacies','action' => 'view_store','id'=>$a_Store['Store']['Id'])).'</li>';
    }
}?>
</ul>
<p>&nbsp;</p>

<h4 class="TitleFive">My Vacancies <?php echo $html->link(__('Add Vacancy', true), array('controller'=>'vacancies','action' => 'add'));?>  </h4>
<ul class="listOne">
<?php if(!empty($a_Vacancies)){
      foreach($a_Vacancies as $a_Vacancy)
      {
        echo '<li>'.$html->link(__($a_Vacancy['Vacancy']['Title'].' Id'.$a_Vacancy['Vacancy']['id'], true), array('controller'=>'vacancies','action' => 'view','id'=>$a_Vacancy['Vacancy']['id'])).'</li>';
    }
}?>
</ul>
<p>&nbsp;</p>

<h4 class="TitleFive">My Applicants &nbsp;
<?php echo $html->link(__('View all', true), array('controller'=>'pharmacies','action' => 'applicants/'.$pharmacy['Pharmacy']['id']));?>    </h4>
<ul class="listOne">
<?php if(!empty($myApplied)){
      foreach($myApplied as $a_Vacancy)
      {
        echo '<li>'.$html->link(__($a_Vacancy['Vacancy']['title'].' Id'.$a_Vacancy['Apply']['id'], true), array('controller'=>'pharmacies','action' => 'view_applied','id'=>$a_Vacancy['Apply']['id'])).'</li>';
    }
}?>
</ul>
<p>&nbsp;</p>
<?php echo $this->element('invite_pharmacy');?>
</div>
<!--COLUMN 2-->

<!--COLUMN 3-->
<div class="FourColGrid_c3">

</div>
<!--COLUMN 3-->

<!--COLUMN 4-->
<div class="FourColGrid_c4">
<h6 class="TitleFive">Locum Search</h6>
<?php echo $this->element('search_for_pharmacy');?>
</div>
<!--COLUMN 4-->
